package com.entity;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;


//

/**
 * 1.@XmlElement必须在set方法上面使用
 * 2.@XmlElementWrapper用在集合或者map上面
 */
@XmlRootElement(name="root")
public class MyClass {
	private String className;
	private List<Student> student;
	public String getClassName() {
		return className;
	}
	@XmlElement
	public void setClassName(String className) {
		this.className = className;
	}
	public List<Student> getStudent() {
		return student;
	}
	@XmlElementWrapper
	@XmlElement
	public void setStudent(List<Student> student) {
		this.student = student;
	}
	
}
